package com.k1998.mybatis.dao;

import com.k1998.mybatis.bean.Message;
import com.k1998.mybatis.utils.QueryInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface IMessageDao {
    public int getMessageCountsByDisplay(@Param("name") String name,@Param("display") int display);
    public Message detailMessage(Message message);
    public int insertMessage(Message message);
    public int updateMessageById(Message message);
    public List<Message> findMessageByDisplay(@Param("name") String name, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize,@Param("display") int display);
    public int reversalMessageDisplay(List<String> messages);
    public int batchDeleteMessage(List<String> list);
}
